package com.fysports.web.model.app;

import com.jfinal.log.Log;
import com.fysports.web.model.BaseModel;

import java.util.Date;

/**
* Class title: DB实体 - app_banner -  <br/>
* Describe:                    <br/>
* Created by [CodeGenerator]   <br/>
* Date : 2015-12-28 08:28:45       <br/>
* Project : weixin           <br/>
*/
public class AppBanner extends BaseModel<AppBanner>{
    /**/
    private static Log log = Log.getLog(AppBanner.class);
    public final static AppBanner dao = new AppBanner();
    /*数据库字段静态变量*/
    /** name  标题 */
    public final static String COL_NAME="name";
    /** imageurl  图片存储路径 */
    public final static String COL_IMAGEURL="imageurl";
    /** type  banner类型 */
    public final static String COL_TYPE="type";
    /** status  1显示0隐藏 */
    public final static String COL_STATUS="status";
    /** orders  排序 */
    public final static String COL_ORDERS="orders";
    /** url  跳转路径 */
    public final static String COL_URL="url";
    /** remark   */
    public final static String COL_REMARK="remark";
    public AppBanner() {
        if (this.getStr(COL_UUID) == null || this.getStr(COL_UUID).length() == 0) {
        this.set(COL_UUID, generateUUID());
        }
    }

    public String getName(){
            return this.getStr(COL_NAME);
    }
    public void setName(String name){
        this.set(COL_NAME,name);
    }
    public String getImageurl(){
            return this.getStr(COL_IMAGEURL);
    }
    public void setImageurl(String imageurl){
        this.set(COL_IMAGEURL,imageurl);
    }
    public String getType(){
            return this.getStr(COL_TYPE);
    }
    public void setType(String type){
        this.set(COL_TYPE,type);
    }
    public Boolean isStatus(){
            return this.getBoolean(COL_STATUS);
    }
    public void setStatus(Boolean status){
        this.set(COL_STATUS,status);
    }
    public String getOrders(){
            return this.getStr(COL_ORDERS);
    }
    public void setOrders(String orders){
        this.set(COL_ORDERS,orders);
    }
    public String getUrl(){
            return this.getStr(COL_URL);
    }
    public void setUrl(String url){
        this.set(COL_URL,url);
    }
    public String getLiveflag(){
            return this.getStr(COL_LIVEFLAG);
    }
    public void setLiveflag(String liveflag){
        this.set(COL_LIVEFLAG,liveflag);
    }
    public Date getCreatetime(){
            return this.getDate(COL_CREATETIME);
    }
    public void setCreatetime(Date createtime){
        this.set(COL_CREATETIME,createtime);
    }
    public String getRemark(){
            return this.getStr(COL_REMARK);
    }
    public void setRemark(String remark){
        this.set(COL_REMARK,remark);
    }
}